import request from '@/utils/request'

// 查询点检与维护列表
export function listInspect(query) {
  return request({
    url: '/system/inspect/list',
    method: 'get',
    params: query
  })
}

// 查询点检与维护详细
export function getInspect(id) {
  return request({
    url: '/system/inspect/' + id,
    method: 'get'
  })
}

// 新增点检与维护
export function addInspect(data) {
  return request({
    url: '/system/inspect',
    method: 'post',
    data: data
  })
}

// 修改点检与维护
export function updateInspect(data) {
  return request({
    url: '/system/inspect',
    method: 'put',
    data: data
  })
}

// 删除点检与维护
export function delInspect(id) {
  return request({
    url: '/system/inspect/' + id,
    method: 'delete'
  })
}

// 处理点检与维护
export function setInspectStatus(id) {
  return request({
    url: '/system/inspect/' + id,
    method: 'post'
  })
}
